<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="umsroot.css">
<TITLE>
Pretty Printer Tool
</TITLE>
</HEAD>
<BODY >
<A HREF="umsroot087.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="umsroot083.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="umsroot089.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H2 CLASS="section"><A NAME="htoc210">15.5</A>&nbsp;&nbsp;Pretty Printer Tool</H2>

The pretty printer library provides a set of predicates for the printing
of a file's contents as a file in a number of formats.
In particular, an ECL<SUP><I>i</I></SUP>PS<SUP><I>e</I></SUP> source file can be converted into an
HTML document with proper indentation, syntax colouring, hyperlinks
from predicate uses to definition, and hyperlinks to documentation.<BR>
<BR>
The <A HREF="../bips/lib/pretty_printer/pretty_print-2.html"><B>pretty_print/2</B></A><A NAME="@default876"></A> 
predicate is used to print the file, or list of files.
A list of options can be given which modifies the format of the output
file, its location, etc. The following creates a <TT>pretty</TT>
directory in the current directory. Within the pretty directory reside
<TT>index.html</TT> and <TT>queen.html</TT>, where <TT>queen.html</TT> is the 
<TT>queen</TT> module pretty printed in HTML:
<BLOCKQUOTE CLASS="quote">
<PRE CLASS="verbatim">
?- pretty_printer:pretty_print(queen).
Writing /examples/pretty/queen.html
</PRE></BLOCKQUOTE>
<HR>
<A HREF="umsroot087.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="umsroot083.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="umsroot089.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>
